package com.ml.mall.service.sys;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ml.mall.bean.req.sys.SysUserRoleNewDto;
import com.ml.mall.bean.req.sys.SysUserRoleQueryDto;
import com.ml.mall.bean.vo.sys.SysUserRoleVO;
import com.ml.mall.entity.sys.SysRoleUser;

import java.util.List;

/**
 * <p>
 * 用户角色表 服务类
 * </p>
 *
 * @author kyyang
 * Created 2021-01-06
 */
public interface ISysRoleUserService extends IService<SysRoleUser> {

    List<SysRoleUser> listByUserId(long id);

    /**
     * @description: 查询用户角色
     * @author kyyang
     * @date 2021/1/20 22:14
     * @version 1.0
     */
    List<SysUserRoleVO> sysUserRole(SysUserRoleQueryDto sysUserRoleQueryDto);

    /**
     * @description: 用户角色新建
     * @author kyyang
     * @date 2021/1/20 22:20
     * @version 1.0
     */
    int sysUserRoleNew(SysUserRoleNewDto sysUserRoleNewDto);

    /**
     * @description: 用户角色删除
     * @author kyyang
     * @date 2021/1/20 22:22
     * @version 1.0
     */
    int sysUserRoleDel(SysUserRoleNewDto sysUserRoleNewDto);
}
